How to solve functions in c hacker rank

welcome to shbcf.ru